package cn.iocoder.yudao.module.question.controller.admin.questionitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
* 试题选项信息 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class QuestionItemBaseVO {

    @Schema(description = "试题id", required = true, example = "6932")
    @NotNull(message = "试题id不能为空")
    private Long questionId;

    @Schema(description = "试题类型", required = true, example = "2")
    @NotNull(message = "试题类型不能为空")
    private Long questionType;

    @Schema(description = "是否答案 1:是 0:否", required = true)
    @NotNull(message = "是否答案 1:是 0:否不能为空")
    private Boolean isAnswer;

    @Schema(description = "选项内容", required = true)
    @NotNull(message = "选项内容不能为空")
    private String itemContent;

    @Schema(description = "选项解析")
    private String itemAnalysis;

    @Schema(description = "选项图片")
    private String itemImg;

    @Schema(description = "严格按序作答", required = true)
    @NotNull(message = "严格按序作答不能为空")
    private Boolean itemOrder;

}
